package me.zhengjie.minbearwcs.dao.outbound.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.outbound.inf.SortPalletDetailHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.outbound.SortPalletDetailHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.outbound.history.SortPalletDetailHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class SortPalletDetailHistoryDaoImpl implements SortPalletDetailHistoryDao {

    private final SortPalletDetailHistoryMapper mapper;

    @Override
    public boolean insert(SortPalletDetailHistory sortPalletDetailHistory) {
        return mapper.insert(sortPalletDetailHistory) == 1;
    }
}
